from rest_framework import serializers
from .models import User,Addr


# User的序列化器
class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"

# 收获地址的序列化器
class AddrSer(serializers.ModelSerializer):
    class Meta:
        model = Addr
        fields = '__all__'
